package main

import (
	"github.com/gin-gonic/gin"
	"log"
	"test/ollama/middleware"
)

func main() {
	r := gin.Default()
	//设置cors
	r.Use(middleware.Cors())
	//设置路由信息
	r.Use(middleware.Router(r))

	err := r.Run(":8080")
	if err != nil {
		log.Fatalln("服务启动异常", err)
	}
}
